<?php

class UI_Apariencia{
	public static function cabeceraMenuConTit($titVentana,$titPrincipal,$subTitPrincipal){
		self::cabecera(true,true,$titVentana,$titPrincipal,$subTitPrincipal);
	}
	
	public static function cabeceraMenuSinTit($titVentana){
		self::cabecera(false,true,$titVentana,'','');
	}
	
	public static function cabeceraSinMenuConTit($titVentana,$titPrincipal,$subTitPrincipal){
		self::cabecera(true,false,$titVentana,$titPrincipal,$subTitPrincipal);
	}
	
	public static function cabeceraSinMenuSinTit($titVentana){
		self::cabecera(false,false,$titVentana,'','');
	}
		
	private static function cabecera(
		$conTitulo,
		$conMenu,	
		$titVentana,
		$titPrincipal,
		$subTitPrincipal){
		?>
		<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
		<html>
		
		<head>
		  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo Omicron::getCharSet()?>" />
		  <title><?php echo $titVentana ?></title>		  
		  <link href="Vista/style.css" rel="stylesheet" type="text/css" />
		  <link href="<?php echo jquery::getCSS_UI()?>" rel="stylesheet" type="text/css" />    
		  <!--[if IE]><style>.capR { margin-left: -14px; }</style><![end if]-->		  
		  <script type="text/javascript" src="<?php echo jquery::getJS() ?>"></script>
		  <script type="text/javascript" src="<?php echo jquery::getJS_UI() ?>"></script>
		</head>
		
		<body class="oneCol">
			
		    <div id="menubar" <?php if(!$conMenu){echo "style='display: none'";}?>>
		    	<ul>
		    		<script type="text/javascript" src="<?php echo Omicron::DIRjs.'/menu.js' ?>"></script>
		        	<li><span class="capL">&nbsp;</span>
		        			<a href="#" onclick="btnMenuSup('Home')" >Home</a><span class="capR">&nbsp;<!--[if IE]> <![endif]-->
		        		</span>
		        	</li>            
		            <li><span class="capL">&nbsp;</span>
		            		<a href="#" onclick="btnMenuSup('About')">About</a><span class="capR">&nbsp;<!--[if IE]> <![endif]-->
		            	</span>
		            </li>            
		        </ul>        
		    </div>
		        
		    <div id="bodyBackground">    
				<div id="container">
				    
				    <div id="header" <?php if(!$conTitulo){echo "style='display: none'";}?>>      
					    <h1><?php echo $titPrincipal ?></h1>
					    <h2><?php echo $subTitPrincipal ?></h2>        
				    </div><!-- end #header -->    
				 
				    <div id="col3" class="pJustify">				      
					    
					    
		<?php 
	}
	public static function pieCreditosConEnlaces(){
		self::pie(true,true);
	}
	public static function pieCreditosSinEnlaces(){
		self::pie(false,true);
	}
	public static function pieSinCreditosSinEnlaces(){
		self::pie(false,false);
	}
	public static function pieSinCreditosConEnlaces(){
		self::pie(true,false);
	}
	
	private static function pie($conEnlaces,$conCreditos){
		?>
					<br>
					</div><!-- end #col3 -->
					<br>
				    <div class="clearfloat colBorder"></div>
				      
				    <div id="colFull" <?php if(!$conEnlaces){echo "style='display: none'";}?>>
				        <h2>Enlaces</h2>
				        
				        <ul class="cf3rd">		        
				        	<li><h4>T&iacute;tulo 1</h4></li>
				            <li><a href="#">Enlace 1</a></li>		            
				        </ul>
				        
				        <ul class="cf3rd">		        
				        	<li><h4>T&iacute;tulo 2</h4></li>
				            <li><a href="#">Enlace 2</a></li>		            
				        </ul>
				        
				        <ul class="cf3rd">		        
				        	<li><h4>T&iacute;tulo 3</h4></li>
				            <li><a href="#">Enlace 3</a></li>		            
				        </ul>
				        		      
				    </div><!-- end #colFull -->
				      
				    <br class="clearfloat"/>
				      
				    <div id="footer" 
				    <?php 	if(!$conCreditos){echo "style='display: none'";}
							if(!$conEnlaces && $conCreditos){echo "style='margin-top: -15px !important'";}
					?>
				    >    
				      <p>Copyright &copy; 2010, omicron.com - Designed by <a href="mailto:marco.ardp.pucp@gmail.com">Marco Rodas</a></p>      
				    </div><!-- end #footer -->
			    
			  	</div><!-- end #container -->
		  
		  </div><!-- end #bodyBackground -->
		  
		</body>
		</html>
		<?php 	
	}
	private static function cabeceraOriginal($titVentana,$titPrincipal,$subTitPrincipal){
		?>
		<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
		<html>
		
		<head>
		  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		  <title><?php echo $titVentana ?></title>
		  <link href="Vista/style.css" rel="stylesheet" type="text/css" />  
		  <!--[if IE]><style>.capR { margin-left: -14px; }</style><![end if]-->
		</head>
		
		<body class="oneCol">
			
		    <div id="menubar">
		    	<ul>
		        	<li><span class="capL">&nbsp;</span>
		        			<a href="#" onclick="alert('Ir al Home')" >Home</a><span class="capR">&nbsp;<!--[if IE]> <![endif]-->
		        		</span>
		        	</li>            
		            <li><span class="capL">&nbsp;</span>
		            		<a href="#" onclick="alert('Ir a About')">About</a><span class="capR">&nbsp;<!--[if IE]> <![endif]-->
		            	</span>
		            </li>            
		        </ul>        
		    </div>
		        
		    <div id="bodyBackground">    
				<div id="container">
				    
				    <div id="header">      
					    <h1><?php echo $titPrincipal ?></h1>
					    <h2><?php echo $subTitPrincipal ?></h2>        
				    </div><!-- end #header -->    
				 
				    <div id="col3" class="pJustify">
				      
					    <h2>Resultados</h2>
					    <br>
					    <?php	
					    		echo 'Hola';
					    	?>
					    
					    <code>
					    				    	 
					    </code>
					    <br><br>
					    <p>Cuerpo de p&aacute;rrafo</p>      
					    <blockquote>
					    	<p>Pensamiento: Jes&uacute;s es un cono feo &mdash; 
					     		<span class="bqAuthor">Alg&uacute;n toro</span>
					     	</p>
					    </blockquote>      
						
						<h3>Sub T&iacute;tulo</h3>        
					    <p>Cuerpo 2</p>                
					    <p>
					    	<code>alert("Hello world!!");</code>
					    </p>          
					    
					    <h2>T&iacute;tulo 2</h2>		
					    <p>Cuerpo 3</p>			    
					    <blockquote class="bqOptionalR">
					    	<p>Pensamiento al margen
					        </p>			        
					    </blockquote>
					    <ul>
					        <li>Item 1</li>
					        <li>Item 2</li>
					        <li>Item 3</li>
					    </ul>        
					    <ol>
					        <li>Item 1</li>
					        <li>Item 2</li>
					        <li>Item 3</li>
					    </ol>        
					        
					    <table cellpadding="0" cellspacing="0">
					    	<tr>
					    		<th>Cabecera 1</th>
					            <th>Cabecera 2</th>
					        </tr>
					        <tr>
					            <td>Aliquam</td>
					            <td class="ra">$348.90</td>
					        </tr>
					        <tr class="trAlt">
					            <td>Curabitur</td>
					            <td class="ra">$6,900.01</td>
					        </tr>
					    </table>
				    </div><!-- end #col3 -->		
		<?php 
	}
}	
?>
	
	